import {switchTheme} from "@/style/theme/theme.js"
const state = {
	themeClass:"theme-DEFAULT",
	pageTitle:"",
	projects:[
		{
			"id":"1",
			"name":"首创天阅山河"
		},
		{
			"id":"2",
			"name":"首创·伊林郡"
		},
		{
			"id":"3",
			"name":"首创河著"
		},
		{
			"id":"4",
			"name":"首创远洋禧瑞天著"
		},
		{
			"id":"5",
			"name":"首创·紫月台"
		},
		{
			"id":"6",
			"name":"首创天禧"
		},
	],
	currentProject:""
};
const mutations = {
	swithcTheme(state,name){
		state.themeClass = name;
		switchTheme(name);
	},
	setPageTitle(state,title){
		state.pageTitle = title;
	},
	setCurrentProject(state,item){
		state.currentProject = item.id;
	}
};
const actions = {

}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}